package pack0618;

public class Demo2 {
    public static void main(String[] args){
        for (int x=100;x<1000;x++){
            int a=x/100;
            int b=x/10%10;
            int c=x%10;
            if (x==a*a*a+b*b*b+c*c*c){
                System.out.println(x);
            }
        }
    }
}
